package com.dong.vdbtc.validation.propertyeditorregistrar;

import com.dong.vdbtc.validation.propertyeditor.ExoticType;
import com.dong.vdbtc.validation.propertyeditor.ExoticTypeEditor;
import org.springframework.beans.PropertyEditorRegistrar;
import org.springframework.beans.PropertyEditorRegistry;

/**
 * description
 *
 * @author Administrator 2021/09/08 11:02
 */
public class MyPropertyEditorRegistrar implements PropertyEditorRegistrar {

    @Override
    public void registerCustomEditors(PropertyEditorRegistry propertyEditorRegistry) {
        propertyEditorRegistry.registerCustomEditor(ExoticType.class,new ExoticTypeEditor());
    }

}
